// .filter just got smarter!
const filteredArray = [1, 2, undefined].filter(Boolean) // number[] not ( number | null )[]
// Get rid of the any's in JSON.parse and fetch
const result = JSON.parse('{}') // unknown instead of any
fetch('/')
.then((res) => res.json())
.then((json) => {
console.log(json) // unknown instead of any
})
// localStorage just got safer!
localStorage.abc // unknown instead of any
// sessionStorage just got safer!
sessionStorage.abc // unknown instead of any